/**
 * Created by Administrator on 2018/10/28.
 */
import * as actionType from '../constants/userinfo'

const initialState = {}

export default function userinfo(state = initialState, action) {
  switch (action.type) {
    // 登录
    case actionType.USERINFO_LOGIN:
      return action.data

    // 修改城市
    case actionType.UPDATE_CITYNAME:
      return action.data

    default:
      return state
  }
}